app.controller("confirmEditTreeCtrl", ["$scope", '$modalInstance','treeType', function($scope, $modalInstance, treeType){
    $scope.info={};
    $scope.info.treeType=treeType;
    $scope.buttonsClick = function(x){
        if(x == 'save'){
            $modalInstance.dismiss($scope.info);
        }
        if(x == 'cancel'){
            $modalInstance.close('cancel');
        }
    }

}])